﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>测试reslFut</title>
</head>
<body>
<a th:href="@{/user/1}">获取单个user数据</a><br>
<a th:href="@{/user}">获取所有用户数据</a><br>
<form  th:action="@{/user}" method="post"><br>
<input type="text" name="name" value="张三"><br>
    <input type="text" name="password" value="123456"><br>
    <input type="submit" value="添加">
</form>
<form  th:action="@{/user}" method="post"><br>
     <!--   put 大小写都可以 -->
    <input type="hidden" name="_method" value="put">
    <input type="text" name="name" value="张三"><br>
    <input type="text" name="password" value="123456"><br>
    <input type="submit" value="修改">
</form><br>
<a th:href="@{/user/1}">删除</a><br>

</body>
</html>